<template>
  <div class="user">
    <h2>用户名:{{ name }}</h2>
    <h2>年龄:{{ age }}</h2>
    <h2>性别:{{ sex }}</h2>
    <h2>家庭住址:{{ address }}</h2>
  </div>
</template>

<script>
    export default {
    name: "User",
    data(){
      return {
        name:'张三',
        age:18,
        sex:'男',
        address:'北京市'
      }
    }
    };
</script>

<style scoped>
    .user{
        background-color: aqua;
    }
</style>